import axios from '@/libs/request/axios'
// 获取产品原子信息
export const getProductList = (params) => {
    return axios.request({
        url: '/product/productAtom/queryAtomList',
        data: params,
        method: 'post'
    })
}
// 获取产品原子信息
export const getProductAtomicInformationList = (params) => {
    return axios.request({
        url: `/product/productAtom/getProductAtomicInformationList`,
        params: params,
        method: 'get'
    })
}
// 添加产品原子信息
export const addAtom = (params) => {
    return axios.request({
        url: '/product/productAtom/addAtom',
        data:params,
        method: 'post'
    })
}
// 编辑产品原子信息
export const editAtom = (params) => {
    return axios.request({
        url: '/product/productAtom/editAtom',
        data:params,
        method: 'post'
    })
}
// 删除产品原子信息
export const deleteAtom = (id, params) => {
    return axios.request({
        url: `/product/productAtom/deleteAtom/${id}`,
        data:params,
        method: 'delete'
    })
}

// 获取模板原子信息
export const getProducttemplateAtomList = (params) => {
    return axios.request({
        url: `/product/productAtom/getProducttemplateAtomList`,
        data: params,
        method: 'post'
    })
}
